angular.module('ionicApp', ['ionic','controllers','services'])


.config(function ($stateProvider, $urlRouterProvider) {

  $stateProvider
  .state('login', {
      url: "/login",
      views: {
        'login-tab': {
          templateUrl: "page/login.html",
          controller: 'loginCtrl'
        }
      }
    })
    .state('news', {
      url: "/news",
      views: {
        'news-tab': {
          templateUrl: "page/news.html",
          controller: 'newsCtrl'
        }
      }
    })
    .state('newsDetail', {
    	url: "/newsDetail",
    	views: {
    		'news-tab': {
    			templateUrl: "page/newsDetail.html",
    			controller: 'newsDetailCtrl'
    		}
    	}
    })
    .state('blog', {
      url: "/blog",
      views: {
        'blog-tab': {
          templateUrl: "page/blog.html"
        }
      }
    })
    .state('translate', {
      url: "/translate",
      views: {
        'translate-tab': {
          templateUrl: "page/translate.html"
        }
      }
    })
    ;


  $urlRouterProvider.otherwise("/news");

})
;
